<?php
namespace app\api\controller;
use app\admin\model\articel\Article as ArticleModel;
use app\common\controller\Api;
class Notice extends Api
{
    protected $noNeedRight = '*';
    protected $noNeedLogin = ['notice'];

    public function _initialize()
    {
        parent::_initialize();
    }
    //最新消息  公告 消息 一条信息
    public function notice(){
        $notice=ArticleModel::where(['is_notice'=>1])->field('id,title')->order(['id'=>'desc'])->find();
        $this->success("",$notice);
    }




}
